package function

/**
函数式接口
*/

type (
	Predicate[T any]          func(T) bool
	Predicate2[T, T2 any]     func(T, T2) bool
	Predicate3[T, T2, T3 any] func(T, T2, T3) bool
	Function[T, E any]        func(T) E
	Consumer[E any]           func(E)
	Consumer2[E, T any]       func(E, T)
	Supplier[T any]           func() T
)
